package com.learn.connection;

import com.learn.properties.MyProperties;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;
import java.util.Map;

public class MyHelperImpl implements MyHelper {
    @Autowired
    private MyProperties properties;
    
    @Override
    public Map<String, String> test() {
        // 进行系列封装，此处只是模拟，不会做复杂
        
        Map<String, String> map = new HashMap<>();
        map.put("姓名", properties.getName());
        map.put("年龄", properties.getAge());
        map.put("性别", properties.getSex());
        
        return map;
    }
}
